<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body { 
	background-color:#d0d0d0; 
	font-family:sans-serif; 
}
div.box { 
	background-color:#f8f8f8; 
	width:70%; 
	margin:20px auto 10px; 
	padding:50px; border-radius:10px; 
	border:1px solid #808080; 
	box-shadow:8px 15px 20px #404040 
}
img.logo { 
		float:right;
		margin:-10px 0 0 0px 
	    max-width: 100%;
	    height: auto;
	    width: auto\9; /* ie8 */

}
	h1 { margin:0; font-size:24px }
	h2 { margin-top:40px; font-size:20px; font-weight:normal; border-bottom:1px solid #ff9040 }
	p { font-size:16px }
	a { color:#6060d0; text-decoration:none }
	a:hover { text-decoration:underline }

img.main {
	    padding: 10px;
	    max-width: 100%;
	    height: auto;
	    width: auto\9; /* ie8 */
}
img.mainstream {
	    max-width: 50%;
	    height: auto;
	    width: auto\9; /* ie8 */
}
</style>

<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
        // General options
        mode : "textareas",
        theme : "advanced",
        plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
        height : "560",
        // Theme options
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,",
//        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
//        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : false,

        // Skin options
        skin : "o2k7",
        skin_variant : "silver",

        // Example content CSS (should be your site CSS)
        content_css : "default.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "js/template_list.js",
        external_link_list_url : "js/link_list.js",
        external_image_list_url : "js/image_list.js",
        media_external_list_url : "js/media_list.js",

        // Replace values for the template plugin
        template_replace_values : {
                username : "Some User",
                staffid : "991234"

        }
});
</script>
</head>
<?php

 include "connect.php";
   	 $i=0;
	 $tableselect = "ex_marker";   
     //$id = $_REQUEST['id'];
	 $id = 1;
	 $query="SELECT * FROM $tableselect WHERE id=$id";
	  $result = mysql_query($query,$con) or die("query:" . mysql_error());
	
	
	$id = mysql_result($result,$i,"id");
	$info = mysql_result($result,$i,"content");
	$content = html_entity_decode($info);
	 
	 
	 
	 //echo $content;
?>
<body>
<div class="box">
<form method="post" action="update.php">
        <textarea style="width:100%" name="content" <?php echo $content;?></textarea>
               
		<input type="hidden" name="id" id="id" value=<?php echo $id; ?> />
		<input type="submit" name="submit" value="Update Page">
		
</form>
</div>

</body>
</html>
